package com.ztgf.sms.models.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.common.constant.Result;
import com.ztgf.sms.models.bo.SmsUserSaveBO;
import com.ztgf.sms.models.dto.sms.SmsUserDTO;
import com.ztgf.sms.models.vo.SmsUserVO;

/**
 * 文件用户表服务
 *
 * @author mxli
 * @Date 2020-10-15 14:32:14
 */
public interface ISmsUserService extends IService<SmsUserDTO> {
    boolean add(SmsUserSaveBO saveBO);

    SmsUserDTO getUserBySession(String sessionId);
    SmsUserDTO getUserBySession(Long userId);

    void setUserSession(String sessionId, SmsUserDTO dto);
    void delUserSession(String sessionId);
    void delUserSessionById(Long id);
    boolean setResetUserSession(String sessionId);
    Result updateUserPassword(String oldPassword, String newPassword, String name);

    Page<SmsUserVO> queryPageVOList(Page<SmsUserVO> page, Wrapper<SmsUserVO> wrapper, Integer type);

    SmsUserVO getUserVO(Long userId);
}
